﻿
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Runtime.Serialization;

namespace RestfulRIAs.DataContracts {

	[DataContract(Name="Borrower")]
	public class BorrowerDto
	{
		[DataMember]
		public int? id {get; set;}
		
		[DataMember]
		public bool isPrimary {get; set;}
		
		[DataMember]
		public string firstName {get; set;}
		
		[DataMember]
		public string middleName {get; set;}
		
		[DataMember]
		public string lastName {get; set;}
		
		[DataMember]
		public string suffix {get; set;}
		
		[DataMember]
		public string ssn {get; set;}
		
		[DataMember]
		public string phoneNumber {get; set;}
		
		[DataMember]
		public string phoneType {get; set;}
		
		[DataMember]
		public DateTime? dateOfBirth {get; set;}
		
		[DataMember]
		public string maritalStatus {get; set;}
		
		[DataMember]
		public int? yearsOfSchool {get; set;}
		
		[DataMember]
		public bool isFirstTimeBuyer {get; set;}
		
		[DataMember]
		public decimal totalMonthlyIncome {get; set;}
		
	}

	[DataContract(Name="Loan")]
	public class LoanDto
	{
		[DataMember]
		public string loanNumber {get; set;}
		
		[DataMember]
		public BorrowerDto primaryBorrower {get; set;}
		
		[DataMember]
		public int numberOfBorrowers {get; set;}
		
		[DataMember]
		public DateTime applicationDate {get; set;}
		
		[DataMember]
		public decimal loanAmount {get; set;}
		
		[DataMember]
		public int loanTermInYears {get; set;}
		
	}
}